package com.bosssoft.g4.service.impl;

import com.bosssoft.g4.entity.Role;
import com.bosssoft.g4.mapper.RoleMapper;
import com.bosssoft.g4.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @className: RoleServiceImpl
 * RoleService实现类
 * @author: Lenovo
 * @date: 2024/8/8 10:55
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;
    /**
     * 新增角色
     * @author zbh
     * @date 2024/08/08 11:41
     * @param role
     */
    @Override
    public void add(Role role) {

        roleMapper.insert(role);
    }
}
